package com.songcha.library_business.helper

import android.content.Context
import com.songcha.library_common.BuildConfig
import com.umeng.analytics.MobclickAgent

class UMengHelper {
    companion object{
        @JvmStatic
        fun onUMEvent(context: Context, eventId:String,map:HashMap<String,Any>?=null){
            if(BuildConfig.DEBUG) return
            var tmp = map
            if(tmp == null){
                tmp = hashMapOf()
                tmp["event_type"] = "default"
            }
            MobclickAgent.onEventObject(context, eventId, tmp)
        }

    }

}